<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix ="c"%>
<%-- jstl 标签库  就是 将一些 java 代码用标签的形式 进行替换--%>
<!DOCTYPE html>
<html>
<head>
  <title>JSP - Hello World</title>
</head>
<body>

<div class="div-body">

    <jsp:include page="/comment/header.jsp"></jsp:include>

    <div class="div-center">
        <jsp:include page="/comment/left-menu.jsp"></jsp:include>

        <div class="div-center-right">
            <div>
                <h2>修改用户</h2>
                ${user}
                <form action="/book/user/updateUser" method="post">

                    <input type="hidden" name="id" value="${user.id}">
                    用户名称：<input type="text" name="username" value="${user.userName}"><br>
                    用户密码：<input type="password" name="pwd" value="${user.password}"><br>
                    真实姓名：<input type="text" name="name" value="${user.name}"><br>
                    用户年龄：<input type="text" name="age" value="${user.age}"><br>
                    <input type="submit" value="确定修改">
                </form>
            </div>
        </div>
    </div>


    <jsp:include page="/comment/footer.jsp"></jsp:include>
</div>



</body>
</html>

<style>

    .div-body {

        width: 1500px;
        height: 1000px;
        border: 1px solid red;

    }
    .div-header {
        width: 1500px;
        height: 100px;
        border: 1px solid ;
        text-align: center;

    }

    .div-center{

        width: 1500px;
        height: 900px;
        border: 1px solid ;
        display: flex;
        flex-direction: row;
    }

    .div-center-left{
        width: 300px;
        height: 900px;
        border: 1px solid ;
    }

    .div-center-right{
        width: 1200px;
        height: 900px;
        border: 1px solid ;
    }

    .div-center-right table {

        height: 850px;
        width: 1200px;
    }

    .div-footer{

        width: 1500px;
        height: 100px;
        border: 1px solid ;
    }

</style>